
export default{
  changeTheme(state) {
    if (state.theme === 'chalk') {
      state.theme = 'vintage'
    } else {
      state.theme = 'chalk'
    }
  },
  /**弹出模态框 */
    MFaqModalBox(state){
        state.FaqModalBox.dialogFormVisible = true;
        
      },
      /**取消，确定关闭模态框 以及模态框的新值*/
      MCloseFaqModalBox(state,newFaqDetail){
        state.FaqModalBox.dialogFormVisible = false;
        state.faqDetail.id = newFaqDetail.id;
        state.faqDetail.title = newFaqDetail.title;
        state.faqDetail.publisher = newFaqDetail.publisher;
        state.faqDetail.readNum = newFaqDetail.readNum;
        state.faqDetail.responseNum = newFaqDetail.responseNum;
        state.faqDetail.publishDate = newFaqDetail.publishDate;
      },
      /**faq板块数据faqTableData */
      MFaqTableData(state,TableData){
        state.faqData.faqTableData = TableData;
        
      },
      /**faq查看详情的对应每行数据 */
      MFaqDetail(state,faqDetail){
        state.faqDetail.id = faqDetail.id;
        state.faqDetail.title = faqDetail.title;
        state.faqDetail.publisher = faqDetail.publisher;
        state.faqDetail.readNum = faqDetail.readNum;
        state.faqDetail.responseNum = faqDetail.responseNum;
        state.faqDetail.publishDate = faqDetail.publishDate;
      },
  

}